// const webpack = require('webpack');

module.exports = {
  mode: 'production',
  devtool: "echeap-module-eval-source-map",
  entry: __dirname + "/index.js",
  output: {
    path: __dirname + "/dist/",
    filename: 'speaker.js'
  },
  plugins: [],
  devServer: {
    contentBase: __dirname + "/dist",
    stats: "errors-only"
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        loader: "babel-loader"
      }
    ]
  }
}